package com.example.day02.dao;

import com.example.day02.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
//    @Insert("insert into user (name,password,create_time) values(#{name},#{password},#{create_time})")
    void add(User user);

    List<User> findAll();

    void edit(User user);

    void delete(Integer id);
}
